package com.crm.vo;

public class Result {
	private boolean success;
	private String message;

	public Result() {
		success = true;
	}
	
	public Result(String message) {
		success = false;
		this.message = message;
	}
	
	public Result(Exception e){
		this(e.getMessage());
	}

	public static final Result SUCCESS = new Result();

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
